package com.tfswx.ruleengine.database.bean.table;

import com.tfswx.ruleengine.database.bean.BaseTable;
import com.tfswx.ruleengine.database.bean.TabeleField;
import com.tfswx.ruleengine.database.bean.Zdlx;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ricky
 * @date 2022/3/1
 */
public class MxstgxTable extends BaseTable {
    @Override
    public String getTableName() {
        return "T_GZYQ_XT_MXSTGX";
    }

    @Override
    public String getTableComment() {
        return "模型实体关系表";
    }

    @Override
    public List<TabeleField> getFieldList() {
        List<TabeleField> mxstgxFieldList = new ArrayList<>();
        mxstgxFieldList.add(new TabeleField("MXSTGXBM", Zdlx.CHAR, 32, true, "模型实体关系编码"));
        mxstgxFieldList.add(new TabeleField("XMBM", Zdlx.CHAR, 32, false, "项目编码"));
        mxstgxFieldList.add(new TabeleField("MXBM", Zdlx.VARCHAR, 36, false, "模型编码"));
        mxstgxFieldList.add(new TabeleField("ZSTBM", Zdlx.VARCHAR, 50, false, "主实体表名"));
        mxstgxFieldList.add(new TabeleField("CSTBM", Zdlx.VARCHAR, 50, false, "从实体表名"));
        mxstgxFieldList.add(new TabeleField("GXBM", Zdlx.VARCHAR, 36, false, "关系编码"));
        mxstgxFieldList.add(new TabeleField("GLGX", Zdlx.VARCHAR, 1000, false, "关联关系"));
        mxstgxFieldList.add(new TabeleField("GLLX", Zdlx.CHAR, 1, false, "关联类型1.一对一2.一对多"));
        mxstgxFieldList.add(new TabeleField("MXSTLX", Zdlx.CHAR, 1, false, "模型实体类型1:数据主表2:业务主表3:关联表"));
        mxstgxFieldList.add(new TabeleField("SFSC", Zdlx.CHAR, 1, false, "是否删除"));
        mxstgxFieldList.add(new TabeleField("CJSJ", Zdlx.TIMESTAMP, null, false, "创建时间"));
        mxstgxFieldList.add(new TabeleField("ZHXGSJ", Zdlx.TIMESTAMP, null, false, "最后修改时间"));
        return mxstgxFieldList;
    }
}
